package com.hassean.we.admin.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yajun
 * @since 2019-03-29
 */
@TableName("tb_sim_charges")
public class TbSimCharges extends Model<TbSimCharges> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "sim_charges_id", type = IdType.AUTO)
    private Long simChargesId;
    @TableField("sim_info_id")
    private Long simInfoId;
    @TableField("message_charges")
    private String messageCharges;
    @TableField("flow_charges")
    private String flowCharges;
    @TableField("call_charges")
    private String callCharges;
    private String rent;
    @TableField("total_charges")
    private String totalCharges;
    @TableField("surplus_charges")
    private String surplusCharges;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("add_time")
    private Date addTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("update_time")
    private Date updateTime;
    private String temp;
    private Long status;
    private String remark;
    @TableField("advance_text")
    private String advanceText;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("advance_date")
    private Date advanceDate;
    @TableField("del_flag")
    private String delFlag;


    public Long getSimChargesId() {
        return simChargesId;
    }

    public void setSimChargesId(Long simChargesId) {
        this.simChargesId = simChargesId;
    }

    public Long getSimInfoId() {
        return simInfoId;
    }

    public void setSimInfoId(Long simInfoId) {
        this.simInfoId = simInfoId;
    }

    public String getMessageCharges() {
        return messageCharges;
    }

    public void setMessageCharges(String messageCharges) {
        this.messageCharges = messageCharges;
    }

    public String getFlowCharges() {
        return flowCharges;
    }

    public void setFlowCharges(String flowCharges) {
        this.flowCharges = flowCharges;
    }

    public String getCallCharges() {
        return callCharges;
    }

    public void setCallCharges(String callCharges) {
        this.callCharges = callCharges;
    }

    public String getRent() {
        return rent;
    }

    public void setRent(String rent) {
        this.rent = rent;
    }

    public String getTotalCharges() {
        return totalCharges;
    }

    public void setTotalCharges(String totalCharges) {
        this.totalCharges = totalCharges;
    }

    public String getSurplusCharges() {
        return surplusCharges;
    }

    public void setSurplusCharges(String surplusCharges) {
        this.surplusCharges = surplusCharges;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAdvanceText() {
        return advanceText;
    }

    public void setAdvanceText(String advanceText) {
        this.advanceText = advanceText;
    }

    public Date getAdvanceDate() {
        return advanceDate;
    }

    public void setAdvanceDate(Date advanceDate) {
        this.advanceDate = advanceDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.simChargesId;
    }

    @Override
    public String toString() {
        return "TbSimCharges{" +
        ", simChargesId=" + simChargesId +
        ", simInfoId=" + simInfoId +
        ", messageCharges=" + messageCharges +
        ", flowCharges=" + flowCharges +
        ", callCharges=" + callCharges +
        ", rent=" + rent +
        ", totalCharges=" + totalCharges +
        ", surplusCharges=" + surplusCharges +
        ", addTime=" + addTime +
        ", updateTime=" + updateTime +
        ", temp=" + temp +
        ", status=" + status +
        ", remark=" + remark +
        ", advanceText=" + advanceText +
        ", advanceDate=" + advanceDate +
        ", delFlag=" + delFlag +
        "}";
    }
}
